<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
     <#assign base=request.contextPath  />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="misapplication-tap-highlight" content="no"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta name="MobileOptimized" content="320"/>
    <title>个人中心</title>
    <#assign base=request.contextPath  />
    <link rel="stylesheet" type="text/css" href="${base}/Yang/layui/css/layui.css"/>
    <script src="${base}/Yang/jquery-1.9.0.min.js"></script>
    <link rel="stylesheet" href="${base}/css/common.css" type="text/css" charset="utf-8"/>
    <style type="text/css">
        li {
            padding: 0.8em;
            border-bottom: 1px solid #eaeaea;
        }

        li:active {
            background: #f4f4f4;
        }
        .item {
            display: block;
            background: no-repeat right center url();
            background-size: 12px 22px;
            -ms-touch-action: auto;
        }

        .top2 {
            border-top: 1px solid #585858;
            width: 100%;
            height: 170px;
        }

        .touxiang {
            float: left;
            margin-top: 60px;
            margin-left: 30px;
        }

        .name {
            text-align: left;
            margin-top: 80px;
            color: white;
            margin-left: 100px;
        }

        .imger {
            width: 70px;
            height: 70px;
            border-radius: 50px;
        }
        button{
            border-radius: 5px;
        }
        .button2 {
            padding-bottom: 5px;
        }
        .content {
            text-align: center;
            padding-top: 0px;
        }
    </style>
</head>

<body onselectstart="return false;">
<div id="content" class="content">
    <#if  we_user ??>
        <div class="top2">
            <div class="touxiang">
                <img class="imger" src="${we_user.headimgurl}"/>
            </div>
            <div class="name">
                <span id="">用户名：${we_user.nickname}</span>
            </div>
        </div>

    </#if>
    <div class="button2">
        <#--    <button class="layui-btn layui-btn-primary"
                    style=" font-size: 20px; width: 150px;height:45px;filter:alpha(opacity:30); opacity:0.5;  -moz-opacity:0.9;-khtml-opacity: 0.9">
                <i class="layui-icon layui-icon-dollar" style="font-size: 20px;"></i>积分
            </button>
            <button class="layui-btn layui-btn-primary"
                    style="font-size: 20px; width: 150px;height:45px;filter:alpha(opacity:30); opacity:0.5;  -moz-opacity:0.9;-khtml-opacity: 0.9">
                <i class="layui-icon layui-icon-rmb" style="font-size: 20px;"></i>
            <#if  ptUser ??>
            ${ptUser.moeny}
            </#if>
            <#if  peopleUser ??>
            ${peopleUser.surplusMoeny}
            </#if>

            </button>-->
    </div>
    <ul id="plist" style="list-style:none;margin:0;padding:0;text-align:left;">
        <li id="plus/accelerometer.html" onclick="javascript:window.location.href='${base}/UserCent/MyInfo.html'">
            <span class="item">个人信息</span>
        </li>
        <li id="plus/audio.html" onclick="javascript:window.location.href='${base}/UserCent/MyOrder.html'">
            <span class="item">我的订单</span>
        </li>
        <li id="plus/barcode.html" onclick="javascript:window.location.href='${base}/weCollection/main.html'">
            <span class="item">收藏的充电站</span>
        </li>

        <#-- <li id="plus/camera.html" onclick="">
             <span class="item">我的充电卡</span>
         </li>
         <li id="plus/device.html" onclick="clicked(this.id)">
             <span class="item">我的钱包</span>
         </li>-->
        <li id="plus/downloader.html" onclick="javascript:window.location.href='${base}/UserCent/MyCar.html'">
            <span class="item">我的车辆</span>
        </li>
        <#-- <li id="plus/events.html" onclick="clicked(this.id)">
             <span class="item">我的积分</span>
         </li>-->
        <li id="plus/file.html" onclick="javascript:window.location.href='${base}/UserCent/wsz.html'">
            <span class="item">用户协议</span>
        </li>
        <li onclick="exit()">
            <span class="item">
                <span class="item" >退出</a>
            </span>
        </li>
    </ul>

</div>
<script>
    function exit() {
        $.ajax({
            type : "POST", //提交方式
            url :  "${base}/weUser/exit",//路径
            success : function(data) {//返回数据根据结果进行相应的处理
                if(data==="true"){
                    window.location.href = 'System/login.html';
                }
            }
        });
    }



</script>
</body>
</html>